package org.service;

import org.persistent.CheckUsernameDao;
import org.persistent.impl.CheckUsernameDaoImpl;

public class CheckUsernameService {

    private CheckUsernameDao checkUsernameDao;

    public CheckUsernameService(){checkUsernameDao = new CheckUsernameDaoImpl();}

    public boolean usernameIsExist(String username){
        return checkUsernameDao.usernameIsExist(username);
    }
}
